@import "../css/variable.less";

.header {
  //border-bottom:2px solid #fff;
  border-bottom:2px solid #f2f2f2;
  :global .ant-menu-horizontal {
    & > .ant-menu-submenu {
      float: right;
    }
    border: none;
    display: inline-block;
    &>.ant-menu-submenu-active,&>.ant-menu-submenu-open{border-bottom: 2px solid transparent};
  }
  box-shadow: @shadow-2;
  position: relative;
  //display: flex;
  justify-content: space-between;
  height: 40px;
  //background-color: @menu-bgcolor;
  background-color: #f2f2f2;
  .userRole {
    //padding: 16px 0 9px 0;
    padding: 4px 0;
    display: inline-block;    
    span {
      display: inline-block;
      height: 13px;
      line-height: 13px;
      font-size: 12px;
      color:#000;
      &:first-child {
        border-right: 1px solid #000;
        padding-right: 16px;
        margin-right: 16px;
      }
      &:nth-child(2){
        display: none;
      } 
    }
  }
  .user {
    display: inline-block;
    height: 13px;
    line-height: 36px;
    padding-bottom: 9px;
    background-color: transparent;
    :global {
      .ant-menu-submenu-horizontal {
        margin-top: -12px;
        
        .ant-menu-submenu-title {
          padding-right: 0;
          padding-left: 0;
          span {
            font-size: 12px;
            color: #000;
            i {
              margin-left: 16px;
            }
          }
        }
      }
    }
  }
  .rightWarpper {
    // display: flex;
    //float: right;
    position:absolute;
    right:0;
   padding-right: 25px;   
  }

  .button {
    //width: 40px;
    width:15px; 
    height: 40px; 
    line-height: 40px; 
    //margin-left: 4px;
    margin-left: 0; 
    text-align: center;
    //font-size: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: @transition-ease-in;
    position: fixed;
    border-radius: 0 4px 4px 0;
    top:50%;
    margin-top: -20px;
    background: #4a90e2;
    z-index: 2;
    i {
      //color:#a7a7a7;
      color: #fff;
    }
    &:hover {
      //color: @primary-color;
      //background-color: fade(@primary-color, 15%);
    }
  }
}

.popovermenu {
  width: 280px;
  margin-left: 6px;

  :global .ant-popover-inner-content {
    padding: 0;

    .ant-menu-inline .ant-menu-item,
    .ant-menu-vertical .ant-menu-item {
      border-right: 0;
      height: 48px;
      line-height: 48px;
    }

    .ant-menu-inline .ant-menu-item-selected,
    .ant-menu-inline .ant-menu-selected {
      border-right: 0;
    }
  }
}
